package cn.bugstack.domain.credit.service;

import cn.bugstack.domain.credit.model.entity.CreditAccountEntity;
import cn.bugstack.domain.credit.model.entity.TradeEntity;

/**
 * @Author: Zchy
 * @Description: 积分调额接口【正逆向，增减积分】
 * @DateTime: 2025/1/18 22:39
 **/
public interface ICreditAdjustService {

    /**
     * 创建增加积分额度订单
     *
     * @author: Zchy
     * @date: 2025/1/18 22:47
     * @param: tradeEntity
     * @return: java.lang.String 订单id
    **/
    String createOrder(TradeEntity tradeEntity);

    /**
     * 查询用户积分账户
     *
     * @author: Zchy
     * @date: 2025/1/20 16:26
     * @param: userId
     * @return: cn.bugstack.domain.credit.model.entity.CreditAccountEntity
    **/
    CreditAccountEntity queryUserCreditAccount(String userId);
}
